using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._General
{
    /// <summary>
    /// <para>Update Schema</para>
    /// <para>Updates the schema of a dataset based upon a Xml set of instructions</para>
    /// <para>根据 Xml 指令集更新数据集的架构</para>
    /// </summary>    
    [DisplayName("Update Schema")]
    public class UpdateSchema : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UpdateSchema()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_table">
        /// <para>Input Table</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_operations">
        /// <para>Schema Operations</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public UpdateSchema(object _in_table, object _operations)
        {
            this._in_table = _in_table;
            this._operations = _operations;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Update Schema";

        public override string CallName => "management.UpdateSchema";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_table, _operations, _out_messages, _out_table];

        /// <summary>
        /// <para>Input Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_table { get; set; }


        /// <summary>
        /// <para>Schema Operations</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Schema Operations")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _operations { get; set; }


        /// <summary>
        /// <para>Output Messages</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Messages")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_messages { get; set; }


        /// <summary>
        /// <para>Output Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Table")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_table { get; set; }


        public UpdateSchema SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}